export const modelSchema = [
  {
    label: '主键',
    prop: 'id',
    showInTable: false,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '案卷号',
    prop: 'fileCode',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
    tableProps: {
      fixed: true,
    }
  },
  {
    label: '题名',
    prop: 'title',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
    tableProps: {
      fixed: true,
    }
  },
  {
    label: '借阅人',
    prop: 'userName',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
    tableProps: {
      fixed: true,
    }
  },
  {
    label: '申请时间',
    prop: 'submitTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    format: (text) => this.parseTime(text, '{y}-{m}-{d}'),
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 120,
    }
  },
  {
    label: '借出时间',
    prop: 'borrowTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    format: (text) => this.parseTime(text, '{y}-{m}-{d}'),
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 120,
    }
  },
  {
    label: '归还时间',
    prop: 'returnTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    format: (text) => this.parseTime(text, '{y}-{m}-{d}'),
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 120,
    }
  },
  {
    label: '借阅天数',
    prop: 'days',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '借阅类型',
    prop: 'billType',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'select',
    componentProps: {
      options: [
        {
          label: '借阅',
          value: 'borrow'
        },
        {
          label: '借出',
          value: 'lend'
        },
      ]
    },
  },
  {
    label: '借阅类型',
    prop: 'billName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '审批状态',
    prop: 'status',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'select',
    componentProps: {
      options: [
        {
          label: '未提交',
          value: '0'
        },
        {
          label: '审批中',
          value: '1'
        },
        {
          label: '已完成',
          value: '2'
        },
        {
          label: '被驳回',
          value: '3'
        },
        {
          label: '已归还',
          value: '5'
        },
      ]
    },
  },
  {
    label: '审批状态',
    prop: 'statusName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
]
